package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

//员工列表
@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {
    //员工登录
    Employee findByUsername(String username);

    //员工列表
    List<Employee> findList(String name);

    //新增员工
    void save(Employee employee);

    //员工信息回显
    Employee findById(Long id);

    //修改员工信息
    // 因为用了mybatisplus 继承了BaseMapper-->底层封装好了 自己写的会覆盖 所以要注释掉
    //int updateById(Employee employee);
}
